package com.nineclock.auth.intergration.processor;

import com.nineclock.auth.intergration.entity.IntergrationAuthenticationEntity;
import com.nineclock.system.dto.SysUserDTO;

/**
 * 认证处理器接口
 */
public interface AuthenticationProcessor {

    /**
     * 处理集成认证方法
     */
    public SysUserDTO authenticate(IntergrationAuthenticationEntity entity);

    /**
     * 判断是否支持当前集成认证类型
     * 从 IntegrationAuthenticationEntity参数中认证类型 authType 判断当前提交认证方式是哪个
     */
    public boolean support(IntergrationAuthenticationEntity entity);
}
